package com.teen9g.infoplatformserver.service;

import com.github.pagehelper.PageInfo;
import com.teen9g.PageQueryDTO.MaimaiChunithmPageQueryDTO;
import com.teen9g.dto.MaimaiChunithmDTO;
import com.teen9g.entity.MaimaiChunithm;
import com.teen9g.userVO.MaimaiChunithmUserVO;
import com.teen9g.vo.MaimaiChunithmVO;
import org.codehaus.jettison.json.JSONException;

public interface MaimaiChunithmService {
    MaimaiChunithm getById(Integer id);

    PageInfo<MaimaiChunithmVO> page(MaimaiChunithmPageQueryDTO mcpQueryDTO);

    String add(MaimaiChunithmDTO maimaiChunithmDTO);

    String update(MaimaiChunithmDTO maimaiChunithmDTO, Integer id) throws JSONException;

    String delete(Integer id);

    void addView(Integer id);

    PageInfo<MaimaiChunithmUserVO> pageUser(MaimaiChunithmPageQueryDTO mcpQueryDTO);
}
